package com.four.service.impl;

import com.four.dao.CarMapper;
import com.four.pojo.Car;
import com.four.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("carServiceImpl")
public class CarServiceImpl implements ICarService {
        @Autowired
        @Qualifier("carMapper")
        private CarMapper carMapper;

        @Override
        public int deleteByPrimaryKey(Integer cid) {
            return 0;
        }

        @Override
        public int insert(Car record) {
            return 0;
        }

        @Override
        public int insertSelective(Car record) {
            return 0;
        }

        @Override
        public Car selectByPrimaryKey(Integer cid) {
            return null;
        }

        @Override
        public int updateByPrimaryKeySelective(Car record) {
            return 0;
        }

        @Override
        public int updateByPrimaryKey(Car record) {
            return 0;
        }

        @Override
        public List<Car> findAll() {
            return carMapper.findAll();
        }
    }

